import { IPSDERInherit } from './ipsderinherit';
import { PSDERIndexImpl } from './psderindex-impl';

export class PSDERInheritImpl extends PSDERIndexImpl implements IPSDERInherit {
  get inheritMode(): 1 | 2 {
    return this.M.inheritMode;
  }

  get inherit(): boolean {
    return this.M.inherit;
  }

  get logicInherit(): boolean {
    return this.M.logicInherit != null ? this.M.logicInherit : false;
  }

  get sameStorage(): boolean {
    return this.M.sameStorage != null ? this.M.sameStorage : false;
  }

  get singleInherit(): boolean {
    return this.M.singleInherit;
  }

  get storageInherit(): boolean {
    return this.M.storageInherit != null ? this.M.storageInherit : false;
  }

  get cls(): string {
    return 'PSDERInheritImpl';
  }

  instanceof(cls: string): boolean {
    if (cls == 'dataentity.der.IPSDERInherit') return true;
    return super.instanceof(cls);
  }
}
